
/**
 * 增加提料单
 */
function addFeedsheet(){
    //list为选择材料信息（例：[{"materialId":"5","materialName":"钢筋","materialModel":"C10型号","materialNumber":"10","materialPurpose":"楼房搭建","materialDesc":"用途备注"}]）
    var list = [{}];
    $.ajax({
        url :   "http://192.168.0.107:8080/userCore/material/record/add",
        type:   "post",
        data:JSON.stringify({
            teamName : $("#teamName").val(),
            personLiableName  : $("#personLiableName").val(),
            personLiablePhone  : $("#personLiablePhone").val(),
            materialPersonName  : $("#materialPersonName").val(),
            materialPersonPhone  : $("#materialPersonPhone").val(),
            list:list
        }),
        contentType:"application/json;",
        success:function(data) {
            alert(data.msg);
        }
    });
}

/**
 * 提料单详情
 */
function queryFeedsheetDetail() {
    $.ajax({
        url :   "http://192.168.0.107:8080/userCore/material/record/queryDetail",
        type:   "post",
        data:JSON.stringify({
            teamName : $("#teamName").val(),
            personLiableName  : $("#personLiableName").val(),
            personLiablePhone  : $("#personLiablePhone").val(),
            materialPersonName  : $("#materialPersonName").val(),
            materialPersonPhone  : $("#materialPersonPhone").val(),
            list:list
        }),
        contentType:"application/json;",
        success:function(data) {
            alert(data.msg);
        }
    });
}